package com.study;

import com.study.spring.common.Person;
import com.study.spring.config.SpringConfig;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.jnlp.PersistenceService;

/**
 * - *@ClassName SpringGetBeanTest
 * - *@Author LiuHuaBing
 * - *@Date 2022/1/24 16:35
 * - *@Version 1.0
 */
public class SpringGetBeanTest {

    @Test
    public  void test() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);

        context.getBean(Person.class);


    }
}
